Skip to content

Support Ruby3#321

Merged
jmatsu merged 15 commits intomasterfrom
jmatsu/feat/support_ruby3
May 14, 2024
Merged

Support Ruby3#321
jmatsu merged 15 commits intomasterfrom
jmatsu/feat/support_ruby3

Conversation

@jmatsu
Copy link
Contributor

@jmatsu jmatsu commented May 9, 2024

The motivation is really clear. For Ruby3 support, this PR upgrade ActiveSupport and adds webrick to dependencies cuz Ruby 3 has dropped webrick from bundled gems.

require "gem_update_checker"
require "active_support/core_ext/time"
require "active_support/core_ext/hash"
require "active_support/core_ext/integer/time"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

active support has moved Numeric extension like 1.days from core_ext/time to here.


unless @token.nil?
extheaders.push(['AUTHORIZATION', @token])
extheaders.push(['AUTHORIZATION', "token #{@token}"])
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The token header prefix is preferred.

module Commands
module Deploy
class Push
BASE_URL = 'https://deploygate.com'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused.

@jmatsu jmatsu marked this pull request as ready for review May 13, 2024 01:46
@jmatsu jmatsu requested review from a team and satsukies and removed request for a team May 13, 2024 01:46
Copy link
Member

@satsukies satsukies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

spec.add_runtime_dependency 'uuid', '~> 2.3'
spec.add_runtime_dependency 'gem_update_checker', '~> 0.2'
spec.add_runtime_dependency 'activesupport', '~> 4.2'
spec.add_runtime_dependency 'i18n', '~> 0.7'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand to delete this line because i18n gem was bundled with after Rails3.

@jmatsu
Copy link
Contributor Author

jmatsu commented May 14, 2024

Thanks~

@jmatsu jmatsu merged commit 422274b into master May 14, 2024
@jmatsu jmatsu deleted the jmatsu/feat/support_ruby3 branch May 14, 2024 02:46
@jmatsu jmatsu mentioned this pull request May 14, 2024
@jmatsu jmatsu self-assigned this May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants